/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.isd.global.modelo;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author ctrosch
 */
@Embeddable
public class ItemVideoPK implements Serializable {
    @Basic(optional = false)
    @Column(name = "USR_TVVIDEOS_TVCONF_ID", nullable = false)
    private int idConf;
    @Basic(optional = false)
    @Column(name = "USR_TVVIDEOS_NORDEN", nullable = false)
    private int orden;

    public ItemVideoPK() {
    }

    public ItemVideoPK(int usrTvvideosTvconfId, int usrTvvideosNorden) {
        this.idConf = usrTvvideosTvconfId;
        this.orden = usrTvvideosNorden;
    }

    public int getIdConf() {
        return idConf;
    }

    public void setIdConf(int idConf) {
        this.idConf = idConf;
    }

    public int getOrden() {
        return orden;
    }

    public void setOrden(int orden) {
        this.orden = orden;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) idConf;
        hash += (int) orden;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ItemVideoPK)) {
            return false;
        }
        ItemVideoPK other = (ItemVideoPK) object;
        if (this.idConf != other.idConf) {
            return false;
        }
        if (this.orden != other.orden) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "tv.global.modelo.ItemVideoPK[idConf=" + idConf + ", orden=" + orden + "]";
    }

}
